package cn.csc.module.search.dal.es.sku;

import cn.csc.module.search.dal.dataobject.sku.SkuDO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

/**
 * @author liuchuang
 * @version 1.0
 * @modify
 * @since 2025/3/17 16:11
 */
@Repository
public interface SkuRepository extends ElasticsearchRepository<SkuDO, BigInteger> {

    Page<SkuDO> findBySkuName(String skuName, Pageable pageable);

    List<SkuDO> findBySpuId(BigInteger spuId);


}
